home *** CD-ROM | disk | FTP | other *** search
/ Aminet 39 / Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso / Aminet / dev / basic / pmDevBas.lha / BH / pm.bc next >
Encoding:
Text File  |  2000-06-29  |  6.2 KB  |  190 lines

  1. ' *********************************************************************
  2. '            popupmenu.library 9.0 (20.4.99) by Henrik Isaksson
  3. '                   HBASIC constants 9.03.0 (6.6.00)
  4. '
  5. '                     C->HBASIC manual conversion
  6. '               © Dámaso D. Estévez <amidde@arrakis.es>
  7. ' *********************************************************************
  8. '   (Hisoft|Maxon) Basic don't support some C features like macros...
  9. ' if you want to understand the C examples included in the developper
  10. ' package see the libraries/pm.h file and the documentation included
  11. '                in the Mr Isaksson developper package.
  12. '
  13. '     (Hisoft|Maxon) Basic no soporta algunas prestaciones del C
  14. '   como las macros... si desea entender los ejemplos en C incluidos
  15. '       en el paquete para desarrolladores consulte el fichero
  16. '          "libraries/pm.h" y la documentación incluida en
  17. '                    el paquete del Sr. Isaksson.
  18. ' ********************************************************************
  19.  
  20. REM $underlines
  21.  
  22. CONST POPUPMENU_VERSION& = 9&
  23.  
  24. ' PM_OpenPopupMenuA, PM_FilterIMsgA
  25.  
  26. CONST PM_Menu&             = &h80000004&
  27. CONST PM_Top&              = &h8000000C&
  28. CONST PM_Left&             = &h8000000D&
  29. CONST PM_Code&             = &h8000000E&
  30. CONST PM_Right&            = &h8000000F&
  31. CONST PM_Bottom&           = &h80000010&
  32. CONST PM_MinWidth&         = &h80000011&
  33. CONST PM_MinHeight&        = &h80000012&
  34. CONST PM_ForceFont&        = &h80000013&
  35. CONST PM_PullDown&         = &h8000005A&
  36. CONST PM_MenuHandler&      = &h8000005B&
  37. CONST PM_AutoPullDown&     = &h8000005C&
  38. CONST PM_LocaleHook&       = &h8000005D&
  39. CONST PM_CenterScreen&     = &h8000005E&
  40. CONST PM_UseLMB&           = &h8000005F&
  41. CONST PM_DRIPensOnly&      = &h80000060&
  42. CONST PM_HintBox&          = &h80000061&
  43.  
  44. ' MakeItemA
  45.  
  46. CONST PM_Title&            = &h80000014&
  47. CONST PM_UserData&         = &h80000015&
  48. CONST PM_ID&               = &h80000016&
  49. CONST PM_CommKey&          = &h8000002F&
  50. CONST PM_TitleID&          = &h80000031&
  51. CONST PM_Object&           = &h8000002B&
  52.  
  53. ' Submenu and layout / Submenús y colocación de elementos
  54.  
  55. CONST PM_Sub&              = &h80000017&
  56. CONST PM_Members&          = &h80000041&
  57. CONST PM_LayoutMode&       = &h80000040&
  58.  
  59. ' Text attrib / Atributos para texto
  60.  
  61. CONST PM_FillPen&          = &h8000001A&
  62. CONST PM_Italic&           = &h8000001D&
  63. CONST PM_Bold&             = &h8000001E&
  64. CONST PM_Underlined&       = &h8000001F&
  65. CONST PM_ShadowPen&        = &h80000022&
  66. CONST PM_ShinePen&         = &h80000023&
  67. CONST PM_Center&           = &h80000024&
  68. CONST PM_TextPen&          = &h8000002D&
  69. CONST PM_Shadowed&         = &h80000030&
  70.  
  71. ' Other item attrib / Otros atributos de los ítems
  72.  
  73. CONST PM_TitleBar&         = &h80000020&
  74. CONST PM_WideTitleBar&     = &h80000021&
  75. CONST PM_NoSelect&         = &h80000019&
  76. CONST PM_Disabled&         = &h80000026&
  77. CONST PM_Hidden&           = &h8000003F&
  78.  
  79. ' Images and icons / Imágenes e iconos
  80.  
  81. CONST PM_ImageSelected&    = &h80000027&
  82. CONST PM_ImageUnselected&  = &h80000028&
  83. CONST PM_IconSelected&     = &h80000029&
  84. CONST PM_IconUnselected&   = &h8000002A&
  85.  
  86. ' Checkmark & MX items / Marcas de verificación y botones radiales
  87.  
  88. CONST PM_Checkit&          = &h8000001B&
  89. CONST PM_Checked&          = &h8000001C&
  90. CONST PM_AutoStore&        = &h8000002C&
  91. CONST PM_Exclude&          = &h80000025&
  92.  
  93. ' Dynamic construction and destruction / Construcción y destrucción dinámica
  94.  
  95. CONST PM_SubConstruct&     = &h8000003D&
  96. CONST PM_SubDestruct&      = &h8000003E&
  97.  
  98. ' Special and misc. stuff / Etiquetas especiales y de miscelánea
  99.  
  100. CONST PM_UserDataString&   = &h8000002E&
  101. CONST PM_Flags&            = &h80000018&
  102. CONST PM_ColourBox&        = &h8000003C&
  103.  
  104. ' MakeMenuA
  105.  
  106. CONST PM_Item&             = &h80000032&
  107. CONST PM_Dummy&            = &h80000033&
  108.  
  109. ' MakeIDList
  110.  
  111. CONST PM_ExcludeID&        = &h80000037&
  112. CONST PM_IncludeID&        = &h80000038&
  113. CONST PM_ReflectID&        = &h80000039&
  114. CONST PM_InverseID&        = &h8000003A&
  115.  
  116. ' PM_InsertMenuItemA
  117.  
  118. CONST PM_Insert_Before&    = &h800000C8&
  119. CONST PM_Insert_BeforeID&  = &h800000C9&
  120. CONST PM_Insert_After&     = &h800000CA&
  121. CONST PM_Insert_AfterID&   = &h800000CB&
  122. CONST PM_Insert_Last&      = &h800000CD&
  123. CONST PM_Insert_First&     = &h800000D1&
  124. CONST PM_InsertSub_First&  = &h800000CE&
  125. CONST PM_InsertSub_Last&   = &h800000CF&
  126. CONST PM_InsertSub_Sorted& = &h800000D0&
  127. CONST PM_Insert_Item&      = &h800000D2&
  128.  
  129.  
  130. ' Layout methods / Métodos para colocar los elementos
  131.  
  132. CONST PML_None&            =   0&
  133. CONST PML_Horizontal&      =   1&
  134. CONST PML_Vertical&        =   2&
  135. CONST PML_Table&           =   3&
  136. CONST PML_Default&         = 255&
  137.  
  138.  
  139. CONST PMERR& = -5&
  140.  
  141.  
  142. '   PopupMenuBase fields
  143. ' -------------------------
  144. CONST pmb_Library%          =  0%
  145. CONST pmb_SegList%          = 34%
  146. CONST pmb_Flags%            = 38%
  147. CONST pmb_ExecBase%         = 42%
  148. CONST pmb_UtilityBase%      = 46%
  149. CONST pmb_IntuitionBase%    = 50%
  150. CONST pmb_GfxBase%          = 54%
  151. CONST pmb_DOSBase%          = 58%
  152. CONST pmb_NewPrefs%         = 62%
  153. CONST pmb_CxBase%           = 64%
  154. ' -------------------------
  155. CONST PopupMenuBase_sizeof% = 68%
  156.  
  157.  
  158. '                   PopupMenu fields
  159. '      BEWARE! Theses can change in future releases!
  160. ' ¡CUIDADO! ¡Pueden ser modificados en versiones futuras!
  161. ' -------------------------------------------------------
  162. CONST pm_Next%          = &h00%
  163. CONST pm_Sub%           = &h04%
  164. CONST pm_Title%         = &h08%
  165. CONST pm_TitleID%       = &h08%
  166. CONST pm_Object%        = &h08%
  167. CONST pm_Flags%         = &h0C%  ' Private / Privado
  168. CONST pm_ID%            = &h10%
  169. CONST pm_UserData%      = &h14%
  170. CONST pm_Left%          = &h18%  ' Private / Privado
  171. CONST pm_Top%           = &h1A%  ' Private / Privado
  172. CONST pm_Width%         = &h1C%  ' Private / Privado
  173. CONST pm_Height%        = &h1E%  ' Private / Privado
  174. ' -------------------------------------------------------
  175. 'CONST pm_ExtFlags%      = &h20%
  176. 'CONST pm_Layout%        = &h22%
  177. 'CONST pm_ColBox%        = &h23%
  178. 'CONST pm_Exclude%       = &h24%
  179. 'CONST pm_AutoSetPtr%    = &h28%
  180. 'CONST pm_Images%        = &h2C%
  181. 'CONST pm_Masks%         = &h30%
  182. 'CONST pm_CommKey%       = &h31%
  183. 'CONST pm_Weight%        = &h32%
  184. 'CONST pm_TextPen%       = &h33%
  185. 'CONST pm_SubConstruct%  = &h37%
  186. 'CONST pm_SubDestruct%   = &h3B%
  187. ' -------------------------------------------------------
  188. PopupMenu_sizeof% = &h3C%
  189.  
  190.